package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员投诉与建议状态枚举
 * @author yzc
 * @version 2.0.0
 * @date 2021/6/3
 */
public enum MemberComplaintStatusEnum {

    /**
     * 待提交投诉建议 - 1
     */
    WAIT_SUBMIT(1, "待提交投诉建议"),

    /**
     * 待处理投诉建议 - 2
     */
    WAIT_HANDLE(2, "待处理投诉建议"),

    /**
     * 已处理投诉建议 - 3
     */
    COMPLETE_HANDLE(3, "已处理投诉建议");

    private final Integer code;

    MemberComplaintStatusEnum(Integer code, String message) {
        this.code = code;
    }

    public static String getCodeMessage(Integer code) {
        return LanguageHolder.getName(MemberComplaintStatusEnum.class, code);
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

}